package com.jf.net.entity

import com.jf.net.core.IError

/**
 * ResponseError
 * @author JackyFlame
 * @time 2023/10/20 15:42
 * @description
 */
class ResponseError() : IError {

    private var errorCode: String? = null
    private var errorMsg: String? = null
    private var error: Throwable? = null

    constructor(errorCode: String? = null, errorMsg: String? = null, error: Throwable? = null) : this() {
        this.errorCode = errorCode
        this.errorMsg = errorMsg
        this.error = error
    }

    override fun getErrorCode(): String? = this.errorCode

    override fun getErrorMsg(): String? = this.errorMsg

    override fun getError(): Throwable? = this.error

}